package com.sky.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.domain.WmsWareInfo;
import com.sky.service.WmsWareInfoService;
import com.sky.mapper.WmsWareInfoMapper;
import com.sky.utils.PageUtils;
import com.sky.utils.StringUtils;
import com.sky.vo.param.WareInfoVO;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【wms_ware_info(仓库信息)】的数据库操作Service实现
* @createDate 2024-06-30 16:47:16
*/
@Service
public class WmsWareInfoServiceImpl extends ServiceImpl<WmsWareInfoMapper, WmsWareInfo> implements WmsWareInfoService{

    /**
     * 分页查询仓库信息
     * @param vo
     * @return
     */
    @Override
    public PageUtils pageQuery(WareInfoVO vo) {
        if (StringUtils.isNotEmpty(vo.getKey())){
            vo.setName(vo.getKey());
        }
        PageUtils pageUtils = PageUtils.selectPage(baseMapper, vo, WmsWareInfo.class);
        return pageUtils;
    }
}




